<?php
final class HouseKeepingPresetMessageCatModel {
	private $mysql;
	private $tableName = 'HouseKeepingPresetMessageCat';
	public $idRowName = 'HouseKeepingPresetMessageCat_ID';
	public $CountRowName = 'HouseKeepingPresetMessageCat_Count';
	public function __construct ($mysql) {
		$this->mysql = $mysql;
	}

	public function GetHouseKeepingPresetMessageCat () {
		$ref = array ();
		$sql = sprintf ('SELECT `%s` FROM `%s`;', $this->mysql->escape_string ($this->idRowName), $this->mysql->escape_string ($this->tableName));
		$sqlresult = $this->mysql->query ($sql);
		while ($data = $sqlresult->fetch_array ()) {
			$ref[] = $data[$this->idRowName];
		}
		$sqlresult->free_result ();
		return $ref;
	}
}
?>
